package com.guoning.office_system.model;

import lombok.Data;

import java.util.Date;

@Data
public class DepartmentWithUser extends Department {
    private User user;

    public DepartmentWithUser(Long id, Long pid, String departmentCode, String departmentName, Long userId, String remark, Integer status, String creator, Date createTime, String modifier, Date modifiedTime, Date ts, Integer dr) {
        super(id, pid, departmentCode, departmentName, userId, remark, status, creator, createTime, modifier, modifiedTime, ts, dr);
    }

    public DepartmentWithUser(Long id, Long pid, String departmentCode, String departmentName, Long userId, String remark, Integer status, String creator, Date createTime, String modifier, Date modifiedTime, Date ts, Integer dr, User user) {
        super(id, pid, departmentCode, departmentName, userId, remark, status, creator, createTime, modifier, modifiedTime, ts, dr);
        this.user = user;
    }
}
